<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        InputSwitch
    </ui:define>

    <ui:define name="description">
        InputSwitch is used to select a boolean value.
    </ui:define>

    <ui:param name="documentationLink" value="/components/inputswitch"/>
    <ui:param name="widgetLink" value="InputSwitch"/>

    <ui:define name="implementation">
        <div class="card">
            <h:form>
                <p:growl id="msg"/>

                <h5 class="mt-0">Basic</h5>
                <p:inputSwitch value="#{selectBooleanView.value1}"/>

                <h5>Remote</h5>
                <p:inputSwitch value="#{selectBooleanView.value2}">
                        <p:ajax listener="#{selectBooleanView.addMessage}" update="msg"/>
                    </p:inputSwitch>
            </h:form>
        </div>
    </ui:define>

</ui:composition>
